<%@ page language="java" pageEncoding="UTF-8"%>
<html>
  <head>
    <title>DWR 应用</title>
    <script language="javascript" src="dwr/interface/AjaxDate.js"></script>	
    <script language="javascript" src="dwr/engine.js"></script>
    <script language="javascript" src="dwr/util.js"></script>
    <script language="javascript">
    	function doTest(){
    		AjaxDate.toString(load);
    	}
    	<!--获取当前时间-->
    	function load(data){
    		window.alert("现在时间是： "+data)
    	}
    </script>
  </head>
  
  <body>
    	<input type="button" value="查询现在时间" onfocuse="doTest()">
  </body>
</html>
